﻿using System.Collections.Generic;
using OA.Manager;
using OA.Model;
using OA.Utility;

namespace OA.Bll.Reimbursement
{
    public class ReimbursementItemPresenter : BasePresenter<ReimbursementItemInfo>
    {
        public List<ReimbursementItemInfo> GetReimbursementId(int reimbursementId)
        {
            return Manager.GetSearchSqlAll("select * from ReimbursementItem where ReimbursementId=" + reimbursementId);
        }

        //private readonly ReimbursementManager _manager;

        //public ReimbursementItemPresenter()
        //{
        //    _manager = new ReimbursementManager();
        //}

        //public new string GetSearchAll(JsonReq req)
        //{
        //    int id;
        //    int.TryParse(req.Options["ReimbursementId"], out id);
        //    return JsonHelper.JsonSerializer(_manager.GetReimbursementItemInfoByReimbursementId(id));
        //}
    }
}
